/**
 * @author wangmin
 * @version 1.0
 * @description 账户类
 * */
public class Account {
    String name;
    String password;
    String id;
    String personId;
    String email;
    double balance;
    //无参构造方法
    public Account(){

    }
    public Account(String name,
                   String password,
                   String id,
                   String personId,
                   String email,
                   double balance){
        this.personId=personId;
        this.email=email;
        this.id=id;
        this.password=password;

    }
    public void deposit(double balance){
        if(balance<0){
            return;
        }
        this.balance += balance;
    }
    public void drowdraw(double balance){
        if(balance<0||balance>this.balance){
            return;
        }
        this.balance -= balance;
    }
}
